package atom.core3.j2ee.privilege.bean;

import java.util.Date;
import java.util.Map;

import atom.core3.j2ee.privilege.WebPrivilegeResource;

public class SessionPrivilegeResource implements java.io.Serializable
{
	private String loginId;//WebResource
	private byte[] objectBytes;
	private Object object;
	private Map<String, WebPrivilegeResource> privileges;
	//SSO用
	private String ssokey;
	private Date lastVisitTime;//上次访问时间 做超时用
	private int sessionTimeout=300;


	public byte[] getObjectBytes()
    {
    	return objectBytes;
    }
	public void setObjectBytes(byte[] objectBytes)
    {
    	this.objectBytes = objectBytes;
    }
	public String getLoginId()
    {
    	return loginId;
    }
	public void setLoginId(String loginId)
    {
    	this.loginId = loginId;
    }	

	public Map<String, WebPrivilegeResource> getPrivileges()
	{
		return privileges;
	}
	public void setPrivileges(Map<String, WebPrivilegeResource> privileges)
	{
		this.privileges = privileges;
	}
	

	
	public SessionPrivilegeResource(String key, String loginId, byte[] objectBytes,Map<String, WebPrivilegeResource> privileges)
	{
		super();
		ssokey = key;
		this.loginId = loginId;
		this.privileges = privileges;
		this.objectBytes = objectBytes;
	}
	public SessionPrivilegeResource()
	{
		super();
	}
	

	
	public String getSsokey()
	{
		return ssokey;
	}
	public void setSsokey(String ssokey)
	{
		this.ssokey = ssokey;
	}
	public Date getLastVisitTime()
	{
		return lastVisitTime;
	}
	public void setLastVisitTime(Date lastVisitTime)
	{
		this.lastVisitTime = lastVisitTime;
	}
	
	public int getSessionTimeout()
	{
		return sessionTimeout;
	}
	public void setSessionTimeout(int sessionTimeout)
	{
		this.sessionTimeout = sessionTimeout;
	}
	public Object getObject()
    {
    	return object;
    }
	public void setObject(Object object)
    {
    	this.object = object;
    }


}
